<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>drops获取数据</title>
    <script src="../../vue.js"></script>
</head>
<!--var myComponent = Vue.component('my-component', {
props : ['title', 'content'],
template : '<h1>{{title}}</h1><p>{{content}}</p>'
})-->
<body>
    <div id="box">
        <my-component title='myTitle' content='myContent'></my-component>
    </div>
    <script>
        Vue.component("my-component",{
            props:['title','content'],
            template:'<h1>{{title}}</h1><p>{{content}}</p>'
        })

        var vm = new Vue({
            el:'#box',
        })

    </script>


</body>
</html>